<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        img{
            width: 50px;
            height: 50px;
            /*行内元素垂直对齐方式
            上top/中middle/下bottom/基线baseline(默认)*/
            vertical-align: bottom;
        }
    </style>
</head>
<body>
<input type="text">
<img src="../2.jpg" alt="">
</body>
</html>